#include<stdio.h>
void mean(int sum)
{
	int i, j;
	for (i = 1; i <= sum; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf("%d*%d=%-4d ", i, j, i * j);
		}
		printf("\n");
	}
}
int main()
{
	int sum;
	scanf_s("%d", &sum);
	mean(sum);
	return 0;
}